package com.songlanyun.modules.signin.controller.api;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.songlanyun.common.utils.R;
import com.songlanyun.modules.signin.service.SignInConfigService;
import com.songlanyun.modules.user.controller.AbstractController;

// import org.apache.shiro.authz.annotation.RequiresPermissions;

/**
 * 签到管理-签到配置
 *
 * @author lijiahe
 * @date 2022-08-03
 */
@RestController
@RequestMapping("api/signInConfig")
public class SignInConfigApiController extends AbstractController {
    @Autowired
    private SignInConfigService signInConfigService;

    @GetMapping("/info")
    // @RequiresPermissions("signIn:config:info")
    public R info() {
        return R.ok().put("data", signInConfigService.get(false));
    }

}
